<template>
	<view class="order-detail-box">
		<cu-custom :isBack="true" bgColor="bg-fa" id="custom">
			<block slot="content">订单详情</block>
		</cu-custom>
		
		<view class="addr-info">
			<view class="addr-left">
				<text class="iconfont icondizhi"></text>
			</view>
			<view class="addr-right">
				<view class="link-name">
					Ling
					<text class="phone">
						13712345678
					</text>
				</view>
				<view class="addr">
					广西壮族自治区南宁市青秀区明生广场12号6栋1单元202
				</view>
			</view>
		</view>
		
		
		<!--  订单商品与店铺信息  -->
		<view class="shop-box">
			
			<view class="shop">
				<view class="shop-name u-line-1">
					<text class="iconfont iconshangpinshengou"></text>
					魅族旗舰店
				</view>
				<view class="goods-warp" v-for="item in 2" :key="item">
					<view class="goods-img">
						<image src="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1608024607993&di=4d4789789e35ee786c0035312f0772b5&imgtype=0&src=http%3A%2F%2Fb-ssl.duitang.com%2Fuploads%2Fitem%2F201610%2F06%2F20161006091021_xjcVn.thumb.700_0.jpeg" class="img"></image>
					</view>
					
					<view class="goods-item">
						<view class="goods-name u-line-2">
							男声欣欣女颜悦，人家不怨言语别。
							五月虽热麦风清，檐头索索缲车鸣。
							野蚕作茧人不取，叶间扑扑秋蛾生。
							麦收上场绢在轴，的知输得官家足。
							不望入口复上身，且免向城卖黄犊。
						</view>
						<view class="spec">
							<view class="spec-text u-line-1">
								男声欣欣女颜悦，人家不怨言语别。
							</view>
							<view class="num">
								x1
							</view>
						</view>
						<view class="price">
							￥ 65.90
						</view>
					</view>
					
				</view>
			</view>
			
		</view>
		<!--  订单商品与店铺信息end  -->
		
		
		<view class="order-info">
			<view class="title-box">
				<view>
					<text class="iconfont iconweibiaoti-"></text>
					订单详情
				</view>
				<view class="status">已支付</view>
			</view>
			
			<view class="label">
				<view class="name">
					订单编号
				</view>
				<view class="text">
					34567897as9dfa4654324656897
				</view>
			</view>
			
			<view class="label">
				<view class="name">
					下单时间
				</view>
				<view class="text">
					2020-12-19 15:30:30
				</view>
			</view>
			
			<view class="label">
				<view class="name">
					支付时间
				</view>
				<view class="text">
					2020-12-19 15:30:30
				</view>
			</view>
			
			<view class="label">
				<view class="name">
					邮费
				</view>
				<view class="text color-fa4">
					￥59.99
				</view>
			</view>
			
			<view class="label">
				<view class="name">
					总价
				</view>
				<view class="text color-fa4">
					￥1200
				</view>
			</view>
			
			<view class="label">
				<view class="name">
					实付
				</view>
				<view class="text color-fa4">
					￥1000
				</view>
			</view>
			
		</view>
		
		<view class="submit-btn">
			<u-button @tap="navRefund" shape="circle" :ripple="true" :custom-style="{'background':'#FA436A','borderColor':'#FA436A','color':'#fff'}">申请退款</u-button>
		</view>
		
	</view>
</template>

<script>
	export default {
		name:"orderDetail",
		data(){
			return {
				orderId:null,
			}
		},
		methods:{
			/*  点击申请退款  */
			navRefund(){
				
			},
		},
		onLoad(e) {
			console.log(e.id)
			this.orderId = e.id
		},
			
	}
</script>

<style scoped lang="scss">
	.order-detail-box{
		
		.addr-info{
			width: calc(100% - 40rpx);
			padding: 20rpx;
			margin-left: 20rpx;
			background: #FFFFFF;
			margin-top: 20rpx;
			display: flex;
			justify-content: flex-start;
			align-items: center;
			color: #666666;
			border-radius: 12rpx;
			.addr-left{
				min-width: 80rpx;
				max-width: 80rpx;
				.iconfont{
					color: #666;
					font-size: 56rpx;
				}
			}
			.link-name{
				font-size: 28rpx;
			}
			.phone{
				float: right;
			}
		}
		
		
		.shop-box{
			.shop{
				width: calc(100% - 40rpx);
				margin-left: 20rpx;
				padding: 10rpx 20rpx;
				background: #FFFFFF;
				margin-top: 20rpx;
				border-radius: 12rpx;
				.shop-name{
					font-size: 28rpx;
					.iconfont{
						font-size: 32rpx;
						margin-right: 12rpx;
					}
				}
				.goods-warp{
					display: flex;
					justify-content: flex-start;
					align-items: flex-start;
					margin-top: 20rpx;
				}
				.goods-img{
					min-width: 180rpx;
					max-width: 180rpx;
					.img{
						width: 160rpx;
						height: 160rpx;
					}
				}
				.goods-item{
					min-width: calc(100% - 180rpx);
					max-width: calc(100% - 180rpx);
				}
				.spec{
					display: flex;
					justify-content: space-between;
					align-items: center;
					color: #666666;
					font-size: 20rpx;
					.num{
						min-width: 60rpx;
						max-width: 60rpx;
					}
				}
				.price{
					font-size: 32rpx;
					color: #FA436A;
					padding-top: 8rpx;
				}
				.spec-text{
					width: calc(100% - 60rpx);
					max-width: calc(100% - 60rpx);
				}
				
			}
		}
		
		
		.order-info{
			width: calc(100% - 40rpx);
			margin-left: 20rpx;
			padding: 20rpx;
			border-radius: 12rpx;
			background: #FFFFFF;
			margin-top: 20rpx;
			.title-box{
				padding-bottom: 10rpx;
				border-bottom: 2rpx solid #F1F1F1;
				color: #333333;
				font-size: 28rpx;
				display: flex;
				justify-content: space-between;
				align-items: center;
				.iconfont{
					font-size: 40rpx;
					color: #333333;
					margin-right: 10rpx;
				}
				.status{
					color: #FA436A;
					
				}
			}
			.label{
				color: #9C9C9C;
				margin-top: 20rpx;
				display: flex;
				align-items: flex-start;
				justify-content: space-between;
				.name{
					min-width: 160rpx;
					max-width: 160rpx;
					max-width: 160rpx;
					font-size: 28rpx;
				}
				.text{
					padding-left: 20rpx;
					font-size: 28rpx;
					text-align: right;
				}
				.color-fa4{
					color: #FA436A;
				}
			}
		}
		
		.submit-btn{
			width: 90%;
			margin-left: 5%;
			margin-top: 60rpx;
		}
		
	}
</style>
